package com.enlorenz.core.channel.socket.imp.longconnection;

import java.nio.channels.SelectionKey;

import com.enlorenz.core.channel.IChannelEngine;
import com.enlorenz.core.channel.socket.common.server.AbstractNioServerChannel;

/**
 * nio长连接服务端
 * @author lcb
 */
public class NioLongServerSocketChannel extends AbstractNioServerChannel implements IChannelEngine{
	
	@Override
	protected void doAfterRead(SelectionKey key) {
		
	}

	@Override
	protected void doAfterWrite(SelectionKey key) {
    	key.interestOps(SelectionKey.OP_READ);
	}

	@Override
	protected boolean isLongSocket() {
		return true;
	}

}
